package com.dhcc.sds.custom.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.plugins.Page;
import com.dhcc.core.framework.base.service.IBaseService;
import com.dhcc.core.framework.result.node.ZTreeNode;
import com.dhcc.sds.custom.entity.SdsCusIndexHeaderEntity;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * 自定义病种指标统计配置服务层接口
 *
 * @ClassName: ISdsCusIndexHeaderService
 * @Description: TODO
 * @author yhw
 * @date 2024-07-01 11:14:53
 */
public interface ISdsCusIndexHeaderService extends IBaseService<SdsCusIndexHeaderEntity> {

    String index();
    String toAdd(Long entityId,Integer indexType, Model model);
    String toUpdate(Long cusIndexHeaderId, Model model);
    String toCompare(Long indexHeaderId, Model model);


    List<SdsCusIndexHeaderEntity> page(Page<SdsCusIndexHeaderEntity> page, Map<String, Object> map);
    List<SdsCusIndexHeaderEntity> list(Map<String, Object> map);

    List<ZTreeNode> getIndexHeaderTree(Long entityId, Integer indexType);

    List<Map<String, Object>> selectIndexHeader(Map<String, Object> params);

    void importIndexHeader(List<List<Object>> indexAll, Long entityId);

    void importIndexItem(List<List<Object>> indexItemAll, Long entityId);

    List<SdsCusIndexHeaderEntity> getParentIndexHeader(Map<String, Object> map);

    JSONObject getAnalysisCaseDic(Map<String, String> params);

    String getTitleByField(Long entityId, Integer indexType, String field);
}
